import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'home',
    component: () => import('../views/home/Index.vue'),
    children:[
      {
        path:"/",
        component: () => import('../views/home/Home.vue'),
      },
      {
        path: '/note',
        name: 'note',
        component: () => import('../views/home/Note.vue')
      },
      {
        path: '/experience',
        name: 'experience',
        component: () => import('../views/home/Experience.vue')
      },
      {
        path: '/daily',
        name: 'daily',
        component: () => import('../views/home/Daily.vue')
      },
      {
        path: '/friendlylinks',
        name: 'friendlylinks',
        component: () => import('../views/home/FriendlyLinks.vue')
      },
      {
        path: '/about',
        name: 'about',
        component: () => import('../views/home/About.vue')
      },
      {
        path:"/articledetails/:articleId",
        component:() => import('../views/ArticleDetails.vue'),
      }
    ]
  },



]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
